﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CNRegex.Biz;

namespace CNRegex.Web.Base
{
	public class BaseControllerFactory : DefaultControllerFactory
	{
		protected override IController GetControllerInstance(System.Web.Routing.RequestContext requestContext, Type controllerType)
		{
			IController controllerInstance = base.GetControllerInstance(requestContext, controllerType);
			InjectBizObject.Inject(controllerInstance);
			return controllerInstance;
		}
	}
}